package com.example.administrator.appli.myview;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.View;

/**
 * Created by Administrator on 2017/5/19.
 */
public class DrawlineView extends View {

    public DrawlineView(Context context) {
        super(context);
    }

    public DrawlineView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public DrawlineView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

//    @Override
//    protected void onDraw(Canvas canvas) {
//        super.onDraw(canvas);
//        Paint paint = new Paint();
//        paint.setColor(Color.RED);
//        paint.setStrokeWidth(10);
//        canvas.drawLine(0, 0, 100, 100, paint);
//    }
}
